package com.gcd.gym.mapper;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gcd.gym.model.Coach;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CoachMapper extends BaseMapper<Coach> {
    default Page<Coach> findAllCoach(Page<Coach> page,Coach coach) {
        LambdaQueryWrapper<Coach> queryWrapper= Wrappers.lambdaQuery(coach);


        return selectPage(page,queryWrapper);
    }


}
